<template>
  <el-aside v-if="$route.meta.hasMainMenu != false" width="180px">
    <!-- 菜单 -->
    <el-menu
      :default-active="$route.path"
      :collapse="false"
      class="el-menu-vertical-demo"
      background-color="#545c64"
      text-color="#fff"
      active-text-color="#ffd04b"
      :router="true"
      style="border-right: none; overflow: visible"
    >
      <el-menu-item index="/welcome">
        <i class="el-icon-menu"></i>
        <span slot="title">欢迎界面</span>
      </el-menu-item>
      <el-menu-item index="/search">
        <i class="el-icon-search"></i>
        <span slot="title">搜索功能</span>
      </el-menu-item>
      <el-menu-item index="/download">
        <i class="el-icon-download"></i>
        <span slot="title">文章提取</span>
      </el-menu-item>
      <el-menu-item index="/advSearch">
        <i class="el-icon-coordinate"></i>
        <span slot="title">关键词采纳</span>
      </el-menu-item>
      <el-menu-item index="/settings">
        <i class="el-icon-setting"></i>
        <span slot="title">设置</span>
      </el-menu-item>
    </el-menu>
  </el-aside>
</template>

<script>
export default {
  name: "MyAside",
  data() {
    return {};
  },
};
</script>
